package com.open.capacity.reimburse.service;

import com.open.capacity.reimburse.entity.PbdBudgetAdjust2;

import com.open.capacity.commons.PageResult;

import java.util.Map;
import java.util.List;

/**
 * 费用分配
 *
 * @author
 * @email
 * @date 2021-06-29 10:26:52
 */
public interface PbdBudgetAdjust2Service {

    /**
     * 添加
     *
     */
    int saveOrUpdate(Integer year, String projectId, String departmentId, PbdBudgetAdjust2[] list);

    /**
     * 添加
     *
     * @param pbdBudgetAdjust2
     */
    int save(PbdBudgetAdjust2 pbdBudgetAdjust2);

    /**
     * 修改
     *
     * @param pbdBudgetAdjust2
     */
    int update(PbdBudgetAdjust2 pbdBudgetAdjust2);

    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @return
     */
    List<PbdBudgetAdjust2> findByDepartmentId(String projectId, String departmentId);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<PbdBudgetAdjust2> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<PbdBudgetAdjust2> findAll(Map<String, Object> params);
}

